﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Slock.GameObjects.ActorComponents
{
    /// <summary>
    /// Base ActorComponent for drawing anything from simple primitives to complex models
    /// </summary>
    public abstract class RenderComponent : ActorComponent
    {
        /// <summary>
        /// Initializes a new instance of RenderComponent
        /// </summary>
        /// <param name="owner"></param>
        public RenderComponent(Actor ownerActor)
            : base(ref ownerActor)
        { }

        /// <summary>
        /// Draws this component to the graphicsDevice
        /// </summary>
        /// <param name="delta">elapsed time since last update</param>
        public abstract void Draw(float delta, Matrix view, Matrix projection);
    }
}
